﻿using System.Collections.Generic;
using ML.Entity;

namespace ML.IRepository
{
    public interface IMerchantRepository : IBaseRepository<MerchantEntity>
    {
        Pager<MerchantResponse> List(MerchantSearch merchantSearch);

        MerchantResponse GetDetailById(string id);

        MerchantEntity GetInfoByUserId(string userId);

        IEnumerable<MerchantEntity> GetListByPlatFormId(string id, int pageindex, int pagesize);

        IEnumerable<MerchantEntity> GetNoDelBusinessList(string name, int pageindex, int pagesize);

        IEnumerable<MerchantEntity> GetNoDelBusinessListByRating(string name, int pageindex, int pagesize,int ratingType,bool isDesc);

        MerchantEntity GetInfoById(string Id);

        IEnumerable<ProductEntity> GetProductCategoryAndInfoById(List<string> productcategory_ids);

        bool Add(MerchantEntity entity, CapitalAccountEntity capitalEntity);

        bool UpdateBusinessState(string Id, string JoinMark);

        IEnumerable<MerchantEntity> GetAll();
    }
}